ci: Honor ARTIFACTS environment variable
authorColin Walters <walters@verbum.org>
Fri, 11 Oct 2019 20:25:48 +0000 (20:25 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 11 Oct 2019 21:00:30 +0000 (21:00 +0000)
This is set by the OpenShift Prow pod-utils:
https://github.com/openshift/test-infra/blob/master/prow/pod-utilities.md

Prep for having OSTree use that.

Closes: #1930
Approved by: jlebon

ci/build-check.sh

index bd0686bd69c274649f187130c0977009a7341c67..2b11b4d34e1fc8c68ed3b04d142a80bff1b93c69 100755 (executable)
@@ -35,9 +35,11 @@ fi
 copy_out_gdtr_artifacts() {
     # Keep this in sync with papr.yml
     # TODO; Split the main/clang builds into separate build dirs
+    local artifactdir
+    artifactdir=${ARTIFACTS:-${topdir}}
     for x in test-suite.log config.log gdtr-results; do
         if test -e ${resultsdir}/${x}; then
-            mv ${resultsdir}/${x} ${topdir}
+            mv ${resultsdir}/${x} ${artifactdir}
         fi
     done
 }